package com.project.harmonyledger.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("transactions")
public class Transaction {
  @TableId(type = IdType.AUTO)
  private Long id;
  private Long userId;
  private Long accountId;
  private Long categoryId;
  private BigDecimal amount;
  private String type; // INCOME 或 EXPENSE
  private String description;
  private Date transactionDate;
  private Date createdAt;
  private Date updatedAt;
}